//
//  NNetworkClient.h
//  nncloud
//
//  Created by macfai on 2018/9/19.
//  Copyright © 2018年 youedata. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

@interface NNetworkClient : NSObject

+(AFHTTPSessionManager *)sharedManager;

///get请求
+(void)getRequestWithBaseUrl:(NSString *)url setParameters:(NSDictionary *)paraDic success:(void(^)(id responseObject))success fail:(void(^)(NSError *error))fail delegater:(UIView *)view;


///Post请求
+(void)postRequestWithBaseUrl:(NSString *)url setParameters:(NSDictionary *)paraDic success:(void(^)(id responseObject))success fail:(void(^)(NSError *error))fail delegater:(UIView *)view;


///图片上传  当前是用方法
+(void)uploadImage:(NSArray *)photos url:(NSString *)urlString parameters:(NSDictionary *)paraDic success:(void(^)(id responseObject))success fail:(void(^)(NSError *error))fail delegater:(UIView *)view;

///图片上传
//+(void)uploadImage:(UIImage *)image url:(NSString *)urlString;
///通过返回的字典拿到状态码
+ (NSInteger)getStatusCodeWithObj:(NSDictionary *)dic;


@end
